﻿using System.Collections;
using System.Collections.Generic;
using PMS.Models.Base;

namespace PMS.IServices
{
    public interface IBaseDictService : IBaseService<BaseDict>
    {
        #region 扩展方法

        /// <summary>
        /// 添加时 更新父节点的IsLeaf为1
        /// </summary>
        /// <param name="parentId"></param>
        /// <returns></returns>
        int AddEditParent(int parentId);

        /// <summary>
        /// 删除时 检查父节点下是否存在子节点 如果不存在 更新IsLeaf=0
        /// </summary>
        /// <param name="parentId"></param>
        /// <returns></returns>
        int DeleteEditParent(int parentId);

        #endregion

    }
}